import React from 'react';
import pic from '@assets/pic2.png';
import "./index.less"

export default class Index extends React.Component{

    componentDidMount(){
        this.fun();
    }

    fun = () =>{
        console.error('这是一个报错信息')
    }

    render(){
        return <div className='my-div'>
            <img src={pic} alt="" width={100}/>
        </div>
    }
}